弧度 = 角度 * Math.PI / 180角度 = 弧度 * 180 / Math.PI
In the JavaScript Math object:The sin () method returns the sine of a number.The tan () method returns a number that represents the tangent of a corner.Math.sin(x)Math.tan(x)Parameter x is required.
A, tan function syntax
function function: Returns the tangent value of the given angle.
Grammar
TAN (number)
Parameter introduction
Number is the angle of the tangent, expressed in radians.
Note: If the unit of the parameter is degrees, you
Introduction to the Math. tan () method for processing tangent in JavaScript
This article mainly introduces the Math. tan () method used to process tangent in JavaScript. It is the basic knowledge in JS beginners. For more information, see
This
This article mainly introduces Math for processing tangent in JavaScript. the tan () method is the basic knowledge in JS beginners. if you need it, you can refer to this method to return the tangent of a number. The tan method returns the tangent of
This article mainly introduces Math for processing tangent in JavaScript. the tan () method is the basic knowledge in JS beginners. If you need it, you can refer to this method to return the tangent of a number. The tan method returns the tangent of
This article mainly introduces the Math.tan () method used in JavaScript for dealing with tangent, which is the basic knowledge in the learning of JS, and the friends who need it can refer to
This method returns the tangent value of a number. The
The syntax of a atan function
function function: Returns the inverse tangent value.
The tangent value is equal to the number parameter value because it is an angle. The returned angle value is expressed in radians, and the range is-PI/2 to PI/2.
Read a lot of tutorials online, are written too complex, in fact, arc and angle conversion is very easyRadian = angle * MATH.PI/180;Angle = Radian * 180/MATH.PI;It's so simple, just look at the calculator,Sin30 is 0.5, what is the value in the
Name
Abs
Category
Mathematical functions
Prototype
Abs (number)
Parameters
Must be selected. The number argument is a valid numeric expression of any type
"Return value"
Type of same number
"Exception/Error"
No
Description
Returns the absolute value
This method returns the tangent value of a number. The Tan method returns the tangent of the indicated angle.Grammar
Math.tan (x);
The following are the details of the parameters:
X: A number that represents radians in degrees
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.